<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		tou = 150;

		jiao = 460;

		// (460-150*2)/2 = 80;

		

	
		// a = 0;

		// b = 150-a;

  //       2*a+4*b = 460;









		// 1*2  149*4  2*2  148*4  3*2 147*4
		
		for (var i = 1; i <=150; i++) {
			if((i*2+(tou-i)*4) ==jiao){
				document.write("鸡的数量："+i+"<br>");
				document.write("兔的数量："+(tou-i)+"<br>");
			}
		}





	</script>
</head>
<body>
	
</body>
</html>